'use strict';

angular.module('patientfileApp', ['ngRoute', 'angularLocalStorage', 'hierarchy', 'mrDirectives'])
  .config(function ($routeProvider, $locationProvider) {
    $routeProvider
      .when('/', {
        templateUrl: 'views/main.html',
        controller: 'MainCtrl'
      })
      .when('/patients', {
        templateUrl: 'views/patients.html',
        controller: 'PatientCtrl'
      })
      .when('/calculators', {
        templateUrl: 'views/calculators.html',
        controller: 'MainCtrl'
      })
      .when('/algorithms', {
        templateUrl: 'views/algorithms.html',
        controller: 'MainCtrl'
      })
      .otherwise({
        redirectTo: '/'
      });
    $locationProvider.html5Mode(false);
  });
